export function useDicts() {
    const menuStatusOption = [
        {
            label: '正常',
            value: '0',
        },
        {
            label: '停用',
            value: '1',
        },
    ]
    const dicts = {
        menuStatusOption,
    }
    const getDictLabel = (mapKey: string, dicKey: number | string) => {
        if (mapKey in dicts) {
            return dicts[mapKey].find(item => item.value == dicKey)?.label
        }
        else {
            return ''
        }
    }
    return { dicts, getDictLabel }
}
